# How To Create A New NuGet Package Version
## The Disco.Web.ClientLibrary nuget package

1. Make sure the current _Disco.Ontology_ assembly is build.
1. Start the _Disco.Web.Api_ project with ctrl+F5.
1. Check-out the `disco.ontology.js` and `disco.ontology.d.ts` file.
1. Run `JaySvcUtil.exe -m http://localhost:50256/api/odata/ -o disco.ontology.js` to generate the new javascript file. Of course you can use any other instance of the web api that uses the specific _Disco.Ontology_ assembly that you would like to generate a JayData context for.
1. Update the typescript code within the `disco.ts` file according to the current needs.
1. Compile it to the corresponding `disco.js` javascript and `disco.js.map` debug info files.
1. Update the version tag within the `Disco.Web.ClientLibrary.nuspec` xml file (the version should reflect the version of the _Disco.Ontology_ assembly that was used to create the `disco.ontology.js` file)
1. Run `nuget.exe pack Disco.Web.ClientLibrary.nuspec` from nuget-pack location to create the package.
1. Check-in all pending changes...

The nuget package will contain the three files: `disco.js`, `disco.js.map` and `disco.ontology.js`

## The Disco.Web.ClientLibrary.DefinitelyTyped nuget package

1. Make sure the TypeScript Definition files `disco.d.ts` and `disco.ontology.d.ts` are generated properly. The `disco.d.ts` file is generated on compile/save of the `disco.js` file while the `disco.ontology.d.ts` file is generated solely by the _JaySvcUtil.exe_ commandline tool.
1. Update the version tag within the `Disco.Web.ClientLibrary.DefinitelyTyped.nuspec` xml file (the version should reflect the version of the _Disco.Ontology_ assembly that was used to create the `disco.ontology.js` file)
1. Run `nuget.exe pack Disco.Web.ClientLibrary.DefinitelyTyped.nuspec` from nuget-pack location to create the package.
1. Check-in all pending changes...

The nuget package will contain the two files: `disco.d.ts` and `disco.ontology.d.ts`
